-- GENERATED SPELL FOR [Yorg Stormheart] --


function spell0_30182(pUnit, Event) --@Avatar,Self--
pUnit:FullCastSpellOnTarget(19135,pUnit)
pUnit:RegisterEvent('Sorts_30182', 15324, 1)
end

function spell1_30182(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15548,pUnit)
pUnit:RegisterEvent('Sorts_30182', 10341, 1)
end

function Sorts_30182(pUnit, Event)
local choix_sorts_30182 = math.random(0, 1)
if choix_sorts_30182 == 0 then
pUnit:RegisterEvent('spell0_30182', 1, 1)
end
if choix_sorts_30182 == 1 then
pUnit:RegisterEvent('spell1_30182', 1, 1)
end
end

function mob30182_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30182', math.random(1500, 3000), 1)
end

function mob30182_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30182_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30182_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30182, 1, 'mob30182_Action')
RegisterUnitEvent(30182, 2, 'mob30182_Leave')
RegisterUnitEvent(30182, 3, 'mob30182_Kill')
RegisterUnitEvent(30182, 4, 'mob30182_Die')
